{% extends "simplestats_base.html" %}

{% block head_extra %}
    <script language="javascript" type="text/javascript" src="{{ MEDIA_URL }}{{ SIMPLESTATS_MEDIA_PREFIX }}js/jquery-1.2.3.js"></script>
    <script language="javascript" type="text/javascript" src="{{ MEDIA_URL }}{{ SIMPLESTATS_MEDIA_PREFIX }}js/flot/jquery.flot.js"></script>
    <!--[if IE]><script language="javascript" type="text/javascript" src="{{ MEDIA_URL }}{{ SIMPLESTATS_MEDIA_PREFIX }}js/flot/excanvas.js"></script><![endif]-->
    <script type="text/javascript">
        $(document).ready(function(){
            var data = [{% for d in data %}[{{ forloop.counter0 }},{{ d }}]{% if not forloop.last %},{% endif %}{% endfor %}];
            $.plot($("#graph"), [data]);
        });
    </script>
{% endblock %}

{% block graph %}<div id="graph"></div>{% endblock %}